
public class DennisDependency 
{
	int indexOfHead;
	int indexOfArg;
	
	public DennisDependency(int head, int arg)
	{
		indexOfHead = head;
		indexOfArg = arg;
	}
	
	public String toString()
	{
		return indexOfHead + "\t" + indexOfArg;
	}
	
	public int getHead()
	{
		return indexOfHead;
	}
	
	public int getArg()
	{
		return indexOfArg;
	}
	
	public int hashCode()
	{
		return 31 * indexOfHead + indexOfArg;
	}
	
	public boolean equals(Object o)
	{
		if(this == o)
			return true;
		else if(this.getClass() != o.getClass())
			return false;
		else
		{
			DennisDependency d = (DennisDependency) o;
			if(indexOfHead == d.getHead() && indexOfArg == d.getArg())
				return true;
			else return false;
		}
	}
}
